﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETA.EntityMappings
{
    public class JoinApplyFormMap : ClassMap<JoinApplyForm>
    {
        public JoinApplyFormMap()
        {
            Id(x => x.JoinApplyFormId);
            References(x => x.User).Column("UserId").Not.LazyLoad();
            Map(x => x.JoinApplyType);
            Map(x => x.CompanyName);
            Map(x => x.CompanyNameForegin);
            Map(x => x.CompanyType);
            Map(x => x.LawPerson);
            Map(x => x.LawPersonEn);
            Map(x => x.AddressProvice);
            Map(x => x.AddressCity);
            Map(x => x.AddressZone);
            Map(x => x.AddressSuffix);
            Map(x => x.Telephone);
            Map(x => x.Mobile);
            Map(x => x.Fax);
            Map(x => x.Email);
            Map(x => x.WebSite);
            Map(x => x.ContactPerson);
            Map(x => x.ContactPersonEn);
            Map(x => x.ContactPersonDepartment);
            Map(x => x.ContactPersonLevel);
            Map(x => x.ContactPersonTel);
            Map(x => x.ContactPersonMobile);
            Map(x => x.ContactPersonEmail);
            Map(x => x.Note);
            Map(x => x.NeedWorkType);
            Map(x => x.CreateDate);
            Map(x => x.ModifyDate);
            Map(x => x.IsDelete);
            Map(x => x.HandlerStatus);

            References(x => x.YinyezhizhaoFile).Column("YinyezhizhaoFileId").Not.LazyLoad();
            References(x => x.JinyingzigeFile).Column("JinyingzigeFileId").Not.LazyLoad();
            References(x => x.MujiyaoxiangFile).Column("MujiyaoxiangFileId").Not.LazyLoad();

        }
    }
}
